home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.5 KB | 40 lines | [TEXT/GEOL] |
- Item 2641589 11-Oct-90 11:51PDT
-
- From: BAJAJ.A Bajaj, Anil
-
- To: AU0008 Austria - Kopfwerk,IDV
-
- cc: MACAPP.TECH$ MacApp Technical
- ROSENSTEIN1 Rosenstein, Larry
- KNEPPER Knepper, Christopher
-
- Sub: Re: ?UMenu for Popups?
-
- Tommy,
-
- There are some problems using UMenu for popup menus.
-
- Since, UMenu descends from a TView, and has a Focus method that creates a new
- port (by calling InitPort/InitCPort) instead of using the existing wMgrPort,
- the new port is restricted to the main screen and as a result the menu pops up
- only on the main screen.
-
- Moreover, there may be a bug in UMenu's handling of the mPopUpMsg which ends up
- doing a Focus. What happens here is that Focus assumes that the fMenuRect
- (which gets set in HandleDefProc) is a valid rect, but during a mPopupMsg, the
- menuRect parameter is uninitialized, since the Menu Manager does not send the
- menuRect along, fMenuRect gets set to an uninitialized Rect and consequently
- the menu ends up popping up at any odd location on the main screen…
-
- What we ended up doing was use Larry's original UMenu which does not descend
- from a view (called it UCustomMenu), and got around all these problems. Since
- our menus don't tearoff this solution worked for us…
-
- Hopefully, we could get a new version of UMenu that works for popups and
- handles scrolling as well and across multiple screens ( Larry? Chris? ).
-
- Hope this helps…
-
- Anil Bajaj
-
-